import { Digit } from '@/enum/digit'

export const getSubTotal = (weight:number, price:number) => {
	return (price * weight).toFixed(Digit.amount)
}

export const getWeight = (num:number, uniWeight:number) => {
	return (num * uniWeight * 0.001).toFixed(Digit.weight)
}